package com.myNovel.novel.service;

import com.myNovel.novel.core.common.resp.RestResp;
import com.myNovel.novel.core.common.util.ImgVerifyCodeUtils;
import com.myNovel.novel.dto.resp.ImgVerifyCodeRespDto;


import java.io.IOException;

/**
 * @Author：Guxx
 * @Package：com.myNovel.novel.service
 * @Date：2024/3/30 13:05
 * @Filename：ResourceService
 */
public interface ResourceService {
    /**
     * 获取图片验证码
     *
     * @throws IOException 验证码图片生成失败
     * @return Base64编码的图片
     */
    RestResp<ImgVerifyCodeRespDto> getImgVerifyCode() throws IOException;
}
